<?php
/**
 * ExtBoxComponent class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtBoxComponent extends ExtComponent
{
    /**
     * Gets the value of ExtJS autoHeight property
     * @return Boolean 
     */
    public function getAutoHeight()
    {
    	return $this->getConfig("autoheight");
    }

    /**
     * Sets the value of ExtJS autoHeight property
     * @param Boolean $value 
     */
    public function setAutoHeight($value)
    {
    	$this->setConfig("autoheight",$value);
    }

    /**
     * Gets the value of ExtJS autoScroll property
     * @return Boolean 
     */
    public function getAutoScroll()
    {
    	return $this->getConfig("autoscroll");
    }

    /**
     * Sets the value of ExtJS autoScroll property
     * @param Boolean $value 
     */
    public function setAutoScroll($value)
    {
    	$this->setConfig("autoscroll",$value);
    }

    /**
     * Gets the value of ExtJS autoWidth property
     * @return Boolean 
     */
    public function getAutoWidth()
    {
    	return $this->getConfig("autowidth");
    }

    /**
     * Sets the value of ExtJS autoWidth property
     * @param Boolean $value 
     */
    public function setAutoWidth($value)
    {
    	$this->setConfig("autowidth",$value);
    }

    /**
     * Gets the value of ExtJS boxMaxHeight property
     * @return Number 
     */
    public function getBoxMaxHeight()
    {
    	return $this->getConfig("boxmaxheight");
    }

    /**
     * Sets the value of ExtJS boxMaxHeight property
     * @param Number $value 
     */
    public function setBoxMaxHeight($value)
    {
    	$this->setConfig("boxmaxheight",$value);
    }

    /**
     * Gets the value of ExtJS boxMaxWidth property
     * @return Number 
     */
    public function getBoxMaxWidth()
    {
    	return $this->getConfig("boxmaxwidth");
    }

    /**
     * Sets the value of ExtJS boxMaxWidth property
     * @param Number $value 
     */
    public function setBoxMaxWidth($value)
    {
    	$this->setConfig("boxmaxwidth",$value);
    }

    /**
     * Gets the value of ExtJS boxMinHeight property
     * @return Number 
     */
    public function getBoxMinHeight()
    {
    	return $this->getConfig("boxminheight");
    }

    /**
     * Sets the value of ExtJS boxMinHeight property
     * @param Number $value 
     */
    public function setBoxMinHeight($value)
    {
    	$this->setConfig("boxminheight",$value);
    }

    /**
     * Gets the value of ExtJS boxMinWidth property
     * @return Number 
     */
    public function getBoxMinWidth()
    {
    	return $this->getConfig("boxminwidth");
    }

    /**
     * Sets the value of ExtJS boxMinWidth property
     * @param Number $value 
     */
    public function setBoxMinWidth($value)
    {
    	$this->setConfig("boxminwidth",$value);
    }

    /**
     * Gets the value of ExtJS height property
     * @return Number 
     */
    public function getHeight()
    {
    	return $this->getConfig("height");
    }

    /**
     * Sets the value of ExtJS height property
     * @param Number $value 
     */
    public function setHeight($value)
    {
    	$this->setConfig("height",$value);
    }

    /**
     * Gets the value of ExtJS pageX property
     * @return Number 
     */
    public function getPageX()
    {
    	return $this->getConfig("pagex");
    }

    /**
     * Sets the value of ExtJS pageX property
     * @param Number $value 
     */
    public function setPageX($value)
    {
    	$this->setConfig("pagex",$value);
    }

    /**
     * Gets the value of ExtJS pageY property
     * @return Number 
     */
    public function getPageY()
    {
    	return $this->getConfig("pagey");
    }

    /**
     * Sets the value of ExtJS pageY property
     * @param Number $value 
     */
    public function setPageY($value)
    {
    	$this->setConfig("pagey",$value);
    }

    /**
     * Gets the value of ExtJS tabTip property
     * @return String 
     */
    public function getTabTip()
    {
    	return $this->getConfig("tabtip");
    }

    /**
     * Sets the value of ExtJS tabTip property
     * @param String $value 
     */
    public function setTabTip($value)
    {
    	$this->setConfig("tabtip",$value);
    }

    /**
     * Gets the value of ExtJS width property
     * @return Number 
     */
    public function getWidth()
    {
    	return $this->getConfig("width");
    }

    /**
     * Sets the value of ExtJS width property
     * @param Number $value 
     */
    public function setWidth($value)
    {
    	$this->setConfig("width",$value);
    }

    /**
     * Gets the value of ExtJS x property
     * @return Number 
     */
    public function getX()
    {
    	return $this->getConfig("x");
    }

    /**
     * Sets the value of ExtJS x property
     * @param Number $value 
     */
    public function setX($value)
    {
    	$this->setConfig("x",$value);
    }

    /**
     * Gets the value of ExtJS y property
     * @return Number 
     */
    public function getY()
    {
    	return $this->getConfig("y");
    }

    /**
     * Sets the value of ExtJS y property
     * @param Number $value 
     */
    public function setY($value)
    {
    	$this->setConfig("y",$value);
    }

    /**
     * @description maps to the setAutoScroll function in Ext.BoxComponent
     * @param sender String -
     * @param scroll Boolean - 
     */
    public static function setAutoScroll_OnAjax($scroll,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setAutoScroll(%s)',
    		array($scroll),
    			 $sender);
    }

    /**
     * @description maps to the setHeight function in Ext.BoxComponent
     * @param sender String -
     * @param height Mixed - 
     */
    public static function setHeight_OnAjax($height,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setHeight(%s)',
    		array($height),
    			 $sender);
    }

    /**
     * @description maps to the setPagePosition function in Ext.BoxComponent
     * @param sender String -
     * @param x Number -
     * @param y Number - 
     */
    public static function setPagePosition_OnAjax($x,$y,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setPagePosition(%s,%s)',
    		array($x,$y),
    			 $sender);
    }

    /**
     * @description maps to the setPosition function in Ext.BoxComponent
     * @param sender String -
     * @param left Number -
     * @param top Number - 
     */
    public static function setPosition_OnAjax($left,$top,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setPosition(%s,%s)',
    		array($left,$top),
    			 $sender);
    }

    /**
     * @description maps to the setSize function in Ext.BoxComponent
     * @param sender String -
     * @param width Mixed -
     * @param height Mixed - 
     */
    public static function setSize_OnAjax($width,$height,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setSize(%s,%s)',
    		array($width,$height),
    			 $sender);
    }

    /**
     * @description maps to the setWidth function in Ext.BoxComponent
     * @param sender String -
     * @param width Mixed - 
     */
    public static function setWidth_OnAjax($width,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('setWidth(%s)',
    		array($width),
    			 $sender);
    }

    /**
     * @description maps to the syncSize function in Ext.BoxComponent
     * @param sender String -
     */
    public static function syncSize_OnAjax($sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('syncSize()',
    		array(),
    			 $sender);
    }

    /**
     * @description maps to the updateBox function in Ext.BoxComponent
     * @param sender String -
     * @param box Object - 
     */
    public static function updateBox_OnAjax($box,$sender=null)
    {
    	ExtWidget::checkSetAjaxRequestValue('updateBox(%s)',
    		array($box),
    			 $sender);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'autoheight' => 'autoHeight',
            'autoscroll' => 'autoScroll',
            'autowidth' => 'autoWidth',
            'boxmaxheight' => 'boxMaxHeight',
            'boxmaxwidth' => 'boxMaxWidth',
            'boxminheight' => 'boxMinHeight',
            'boxminwidth' => 'boxMinWidth',
            'pagex' => 'pageX',
            'pagey' => 'pageY',
            'tabtip' => 'tabTip'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'move' => array('sender','x','y'),
            'resize' => array('sender','adjWidth','adjHeight','rawWidth','rawHeight')
        ));


        $this->setXType('box');
        $this->setXClass('Ext.BoxComponent');
    }    
}
?>